package com.carleasoft.mps.cms.business.write.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.carleasoft.mps.cms.business.resource.bean.vo.WebCountVo;
import com.carleasoft.mps.cms.business.write.bean.entity.LeadingCadreEntity;
import com.carleasoft.mps.cms.business.write.bean.po.LeadingCadrePagePo;
import com.carleasoft.mps.cms.business.write.bean.vo.LeadingCountVo;
import com.carleasoft.mps.cms.business.write.bean.vo.UpAndDownVo;
import org.apache.catalina.servlet4preview.http.HttpServletRequest;

import java.text.ParseException;
import java.util.List;

/**
 * @author: yangHao
 * @createDate:2023/6/7
 * @description:
 */
public interface LeadingCadreService extends IService<LeadingCadreEntity> {
    boolean saveLeading(LeadingCadreEntity leadingCadreEntity, HttpServletRequest request);

    Page<LeadingCadreEntity> pageQuery(Page page, LeadingCadrePagePo leadingCadrePagePo);

    LeadingCadreEntity detail(LeadingCadrePagePo leadingCadrePagePo);

    LeadingCountVo leadingCount() throws ParseException;

    UpAndDownVo upAndDown(String writeCode);

    Page<LeadingCadreEntity> pageQueryWeb( Page page,LeadingCadrePagePo leadingCadrePagePo);

    List<WebCountVo> leadingWebCount();

    boolean delete(String writeCode);
}
